home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / GRAPHICS / @FALCON / RAINBOW2 / DOCS / SPR_FMT.TXT < prev    next >
Encoding:
Text File  |  1995-05-02  |  1.2 KB  |  57 lines

  1. PROGRAMMERS' DESCRIPTION OF OUR SPRITE FORMAT "SPR"
  2. /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
  3.  
  4. LENGTH (BYTES)    DESCRIPTION
  5. ---------------------------
  6. ;        ID
  7. 8        "RAW SPR "
  8.  
  9.  
  10. ;        MAIN HEADER
  11. 2        Offset (from main header) to first GFX
  12. 4        Reserved
  13. 12        file name
  14. 8        Reserved
  15.  
  16.  
  17. ;        GFX HEADER
  18. 4        Offset (from this GFX) to next GFX
  19. 2        Offset (from this GFX) to the graphics data (of this GFX)
  20. 2        Width in pixels (of this GFX)
  21. 2        Height in pixels (of this GFX)
  22. 12        Reserved
  23. ;        GFX GRAPHICS DATA
  24. ???        Graphics data
  25.  
  26. ;        HERE MAY FOLLOW 0-9998 MORE GFX:S (header,data, header,data...)
  27.  
  28. ;        END OF GFX:S
  29. 4        Null (0)
  30.  
  31.  
  32. ;        SEQUENCE HEADER
  33. 4        Offset (from this sequence) to next sequence
  34. 2        Offset (from this sequence) to the frames (of this sequence)
  35. 2        Number of frames (in this sequence)
  36. 2        The length in bytes of a frame (in this sequence)
  37. 2        Reserved
  38.  
  39. ;        FRAME
  40. 4        Reserved
  41. 2        GFX number (0-9999)
  42. 2        Reserved
  43. 2        X offset (for this frame)
  44. 2        Y offset (for this frame)
  45. 2        Duration in VBL:s (for this frame)
  46.  
  47. ;        HERE FOLLOWS 'NUMBER OF FRAMES' FRAMES (frame, frame, frame...)
  48.  
  49. ;        HERE MAY FOLLOW 0-9998 MORE SEQUENCES (header,frames, header,frames...)
  50.  
  51. ;        END OF SEQUENCES
  52. 4        Null (0)
  53.  
  54.  
  55. ;        END OF FILE
  56.  
  57.